import {Link, Route, Switch} from 'react-router-dom'


function About(router) {
  console.log(router)
  return (
    <div>about</div>
  )
}

function Home() {
  return (
    <div>home</div>
  )
}

function App() {
  return (
    <div className="App">
      <Link to="/">Home</Link>
      <Link to="/about">about</Link>

      <div>
        <Switch>
          <Route exact component={Home} path='/'></Route>
          <Route component={About} path='/about'></Route>
        </Switch>
      </div>
    </div>
  );
}

export default App;
